// 导入axios工具包
import instance from '@/utils/axios.js'

// 1.登录
function userLogin({username,password}){
    return instance({
        url:'/admin/user/login',
        method:'post',
        data:{username,password}
    })
}

export { userLogin }

// 2.编辑用户信息
function editUserInfo(fd){
    return instance({
        url:'/admin/user/edit',
        method:'post',
        data:fd
    })
}
export {editUserInfo}
